/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconChat: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M832 160a96 96 0 0 1 96 96v416a96 96 0 0 1-96 96h-308.416l-183.104 152.576a32 32 0 0 1-52.288-20.96L288 896v-128H192a96 96 0 0 1-95.84-90.368L96 672V256a96 96 0 0 1 96-96z m0 64H192a32 32 0 0 0-32 32v416a32 32 0 0 0 32 32h128a32 32 0 0 1 32 32v91.648l139.52-116.224a32 32 0 0 1 16-7.104L512 704h320a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32z m-512 192a48 48 0 1 1 0 96 48 48 0 0 1 0-96z m192 0a48 48 0 1 1 0 96 48 48 0 0 1 0-96z m192 0a48 48 0 1 1 0 96 48 48 0 0 1 0-96z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconChat.defaultProps = {
  size: 18,
};

export default IconChat;
